/**
 * Copyright (c) 2010-2011 Pierre Labatut
 *
 * This file is part of Space-Chronicles project.
 *
 * Space-Chronicles is free software: you can redistribute it and/or modify it
 * under the terms of its license which may be found in the accompanying
 * LICENSE file or <http://code.google.com/p/space-chronicles/>.
 */
package space.app.meshview.state;

import java.awt.Canvas;
import java.awt.Dimension;
import java.awt.event.MouseEvent;
import java.awt.event.MouseWheelEvent;
import javax.media.opengl.awt.GLCanvas;

/**
 *
 * @author Pierre
 */
class AbstractState {

    protected void redraw(MouseEvent e) {
        ((GLCanvas) e.getSource()).display();
    }

    protected Dimension dimension(MouseEvent e) {
        return ((Canvas) e.getSource()).getSize();
    }

    public AbstractState mouseClicked(MouseEvent e) {
        return this;
    }

    public AbstractState mousePressed(MouseEvent e) {
        return this;
    }

    public AbstractState mouseReleased(MouseEvent e) {
        return this;
    }

    public AbstractState mouseEntered(MouseEvent e) {
        return this;
    }

    public AbstractState mouseExited(MouseEvent e) {
        return this;
    }

    public AbstractState mouseDragged(MouseEvent e) {
        return this;
    }

    public AbstractState mouseMoved(MouseEvent e) {
        return this;
    }

    public AbstractState mouseWheelMoved(MouseWheelEvent e) {
        return this;
    }
}
